package com.digital.welcome.util;

import org.jasypt.util.text.BasicTextEncryptor;

/**
 * @author 莲童的雨儿
 */
public class Ency {
    public static void main(String[] args) {
        BasicTextEncryptor textEncryptor = new BasicTextEncryptor();
        //加密所需的salt(盐)
        textEncryptor.setPassword("d3d3sd");
        String username = textEncryptor.encrypt("android");
        String password = textEncryptor.encrypt("123!@#qwe");
        String url = textEncryptor.encrypt("jdbc:mysql://43.138.58.199:5389/android?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=utf-8&useSSL=false");
        System.out.println("url:" + url);
        System.out.println("username:" + username);
        System.out.println("password:" + password);
    }
}
